#include "StateManager.h"
#include "State.h"

CStateManager::CStateManager() : m_pActiveState(NULL)
{
}

CStateManager::~CStateManager()
{
}

void CStateManager::getKeyPressed()
{
	if (m_pActiveState) 
	{
		m_pActiveState->getKeyPressed();
	}
}

bool CStateManager::Update(DWORD dwCurrentTime)
{
	if (m_pActiveState) {
		return m_pActiveState->Update(dwCurrentTime);
	}

	return false;
}

void CStateManager::Draw()
{
	if (m_pActiveState)
		m_pActiveState->Draw();
}